function setTab(name,cursel,n){
 for(i=1;i<n;i++){
  var menu=document.getElementById(name+i);
  var img=document.getElementById("img"+i);
  
  if(name=="new")
      img.src = i == cursel ? "/_layouts/images/SP_XHWeb/chaxun_title_icon0" + i + "b.gif" : "/_layouts/images/SP_XHWeb/chaxun_title_icon0" + i + ".gif";

  var con = document.getElementById("con_" + name + "_" + i);
  menu.className=i==cursel?"hover":"";
  con.style.display=i==cursel?"block":"none";

  
 }
}
